@import "@usehook/cursor.scss";

.input-auto-resize.el-range-editor.el-input__wrapper {
  padding: 0;
}

.input-auto-resize.el-date-editor .el-range__icon {
  padding-left: 10px;
}

.input-auto-resize.el-date-editor .el-range__close-icon {
  padding-right: 10px;
}

.input-auto-resize.el-date-editor .el-range-input {
  font-size: var(--font-size);
  font-family: var(--font-family);
  font-weight: var(--font-weight);
}

.poper-auto-reisze {
  .el-date-range-picker.has-sidebar {
    width: calc(625px + (var(--font-size) - 16px) * 7.5);
  }

  .el-date-range-picker__content {
    padding: 5px;
  }

  .el-date-table td .el-date-table-cell {
    height: 25px;
    display: flex;
    align-items: center;
  }

  .el-date-table td .el-date-table-cell .el-date-table-cell__text {
    line-height: calc(var(--font-size) + 4px);
    height: calc(var(--font-size) + 4px);
    width: calc(var(--font-size) + 4px);
  }

  .el-date-table,
  .el-picker-panel__shortcut {
    font-size: var(--font-size);
    line-height: calc(var(--font-size) * 2);
    font-weight: var(--font-weight);
    font-family: var(--font-family);
  }

  .el-picker-panel__icon-btn {
    font-size: var(--font-size);
    font-family: var(--font-family);
    font-weight: var(--font-weight);
    margin-top: 2%;
  }

  .el-date-range-picker__header div {
    font-size: var(--font-size);
    font-family: var(--font-family);
    font-weight: var(--font-weight);
    margin-right: 50px;
  }

  .el-picker-panel [slot="sidebar"],
  .el-picker-panel__sidebar {
    width: calc(var(--font-size) * 6.5);
  }

  .el-picker-panel [slot="sidebar"] + .el-picker-panel__body,
  .el-picker-panel__sidebar + .el-picker-panel__body {
    margin-left: calc(var(--font-size) * 6.5);
  }

  .el-date-table-cell {
    cursor: pointer;
  }

  .el-date-table td.disabled .el-date-table-cell {
    cursor: default;
  }

  .el-date-table td.disabled {
    cursor: default;
  }
}

.el-date-table td,
.el-date-table td * {
  @include cursor-pointer-important;
}

.el-date-table td.disabled,
.el-date-table td.disabled * {
  @include cursor-default-important;
}

.el-date-editor .el-range__close-icon{
  @include cursor-default-important;
}